package com.shkco.xbjcc.feign;


import com.shkco.result.JSONResult;
import com.shkco.xbjcc.fallback.MediaFileServiceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


@FeignClient(value = "service-media",fallbackFactory = MediaFileServiceFallbackFactory.class)
public interface MediaFileService {

    @RequestMapping(value = "/mediaFile/course/{courseId}",method = RequestMethod.GET)
    JSONResult getMediaByCourseId(@PathVariable("courseId")Long courseId);
}
